set(CMAKE_SYSTEM_NAME Darwin)
set(CMAKE_SYSTEM_VERSION 10.9)
set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT})
set(CMAKE_C_COMPILER cc)
set(CMAKE_CXX_COMPILER c++)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY FIRST)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE FIRST)
set(CMAKE_FIND_FRAMEWORK FIRST)

set(CMAKE_OSX_SYSROOT_PATH /usr/osxcross/SDK/MacOSX10.10.sdk)
set(CMAKE_OSX_SYSROOT ${CMAKE_OSX_SYSROOT_PATH})
list(APPEND CMAKE_SYSTEM_FRAMEWORK_PATH
    ${CMAKE_OSX_SYSROOT_PATH}/Library/Frameworks
    ${CMAKE_OSX_SYSROOT_PATH}/Network/Library/Frameworks
    ${CMAKE_OSX_SYSROOT_PATH}/System/Library/Frameworks
) 

set(APPLE 1)
